import Vue from 'vue'
import Router from 'vue-router'
import PageContainer from "../components/PageContainer";
import TrainPlanManage from "../components/TrainingManagePage/TrainPlanManage";
import ExamingPage from "../components/EmpTrainingPage/ExamingPage";
import EmpOneselfTrainCourse from "../components/EmpTrainingPage/EmpOneselfTrainCourse";
import EmpOneselfInfo from "../components/EmpTrainingPage/EmpOneselfInfo";
import OnlineCoursesStudy from "../components/EmpTrainingPage/OnlineCoursesStudy";
import VideoPage from "../components/EmpTrainingPage/VideoPage";
import TrainingMainPage from "../components/EmpTrainingPage/TrainingMainPage";
import Login from "../components/Login";

Vue.use(Router)

export default new Router({
  routes: [

    {
      path:"/", // path 设置为 “/” ，默认显示该页面
      name:"Login",
      component: Login
    },
    //员工训练主页面
    {
      path:"/EmpTrainingPage/TrainingMainPage",
      name:"TrainingMainPage",
      component: TrainingMainPage
    },
    //管理系统主页面
    {
      path:"/TrainingManagePage/PageContainer",
      name:"PageContainer",
      component: PageContainer
    },
    {
      path: "/EmpTrainingPage/VideoPage",
      name: "VideoPage",
      component: VideoPage
    },
    {
      path: "/EmpTrainingPage/ExamingPage",
      name: "ExamingPage",
      component: ExamingPage
    }
  ],
  mode:"history"    // mode 设置为history ，去掉地址栏上的 # 号
})

